package com.hnevc.thread;

class MyThread implements Runnable{
	public void run(){
		while(true){
			System.out.println("MyThread is running");
		}
	}
	
}

public class Example01 {
	public static void main(String[] args) {
		
		MyThread thread = new MyThread();
		Thread mythread = new Thread(thread);
		//thread.run();
		mythread.start();
		
		while(true){
			System.out.println("Main thread is running");
		}
	}
}
